import Utils from "../core/Utils";

const { ccclass, property } = cc._decorator;

@ccclass
export default class DateControl extends cc.Component {

    onLoad () {
        
    }

    start() {
        this.updateDateTxt();
    }

    private updateDateTxt() {
        let dateArr = Utils.Instance.getNowData();
        let txt = `- ${dateArr[1]}月${dateArr[2]}日 -`;
        this.node.children[0].getComponent(cc.Label).string = txt;
    }

    // update (dt) {}
}
